package com.ithema.mArrayList;

public class ExceptionTest {
    public static void main(String[] args) {
        System.out.println("开始");
                shou();
        System.out.println("结束");
    }
    public static void shou(){
      try {
          int arr[]={12,31,5};
          System.out.println(arr[3]);//ArrayIndexOutOfBoundsException
      }catch (ArrayIndexOutOfBoundsException e){
         //System.out.println("你的数组越界了");
          e.printStackTrace();
      }


    }
}
